<?php

include_once 'Classes/PHPCodeProvider.php';

$options = new CodeGeneratorOptions();
$writer = new IndentedTextWriter();
$provider = new PHPCodeProvider();

/*
 * A reference to a method named 'reset' of the current object
 */

$methodRef1 = new MethodReferenceExpression(
    'reset', new ThisReferenceExpression());

$provider->generateCodeFromExpression($methodRef1, $writer, $options);

echo '<pre>' . 
    str_replace('<br />', '', highlight_string($writer->get_String(), true)) 
        . '<pre/>';



/*
 * The output should be:
 * (This is not a method invocation expression so no braces)
 * 
 * $this->reset
 * 
 */

?>
